package com.mayisoftware.mayioa.business.input.impl.serviceImpl;

import com.mayisoftware.mayioa.business.input.api.domain.UploadRecord;
import com.mayisoftware.mayioa.business.input.api.service.IUploadRecordService;
import com.mayisoftware.mayioa.business.input.impl.dao.UploadRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UploadRecordServiceImpl implements IUploadRecordService {

    @Autowired
    private UploadRecordMapper uploadRecordMapper;

    @Override
    public List<UploadRecord> queryRecordList(UploadRecord record) {
        return uploadRecordMapper.selectRecordList(record);
    }

    @Override
    public List<UploadRecord> queryRecordListById(String recordId) {
        return  uploadRecordMapper.selectRecordListById(recordId);
    }

    @Override
    public List<UploadRecord> queryRecordListNeedParse() {
        return uploadRecordMapper.selectRecordListNeedParse();
    }

    @Override
    public int editInputRecord(UploadRecord record) {
        return  uploadRecordMapper.updateInputRecord(record);
    }

    @Override
    public int addInputRecord(UploadRecord record) {
        return uploadRecordMapper.insertInputRecord(record);
    }
}
